<!-- 
 *  Copyright [2014] UW-Parkside
 * Authors: Jasmine Griffiths, Matthew Zygowicz, Armando Narvaez
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
*/
-->

<!-- 'hiddenEditBox.php' The sticky window for the editing route page. -->
<?php
print "<form id=\"editRouteForm\" action=\"/index.php/kat/editroute/$routeNumber/$direction\" method=\"POST\">";
?>
<p><strong>Add Stop</strong></p>
<hr />

<!-- ----------------Location Field------------------------- -->
<p>
    <label class="field" for="location">Location</label>
    <input class="reducedInput" name="location" type="text" placeholder="" required="">
</p>
<!-- ----------------End Location Field--------------------- -->

<!-- ------------------Day Field---------------------------- -->
<p>
    <label class="field" for="day">Day</label>
	    <select class = "reducedInput" name="day">
        <option value="Weekend">Weekend</option>
        <option value="Weekday">Weekday</option>
    </select>
    <!--<input class="reducedInput" name="day" type="text" placeholder="" required=""> -->
</p>
<!-- ----------------End Day Field------------------------- -->

<!-- ----------------Time Field------------------------- -->
<p>
    <label class="field" for="time">Time</label>
    <select id='hourSelect' class='reducedInputTime' name='hour'>
	<?php
	for($i=1; $i < 13 ; $i++){
		  print "<option value='$i'>$i</option>";
	}
    ?>
    </select>
    <select id='minuteSelect' class='reducedInputTime' name='minute'>
    <?php
	for($i=0; $i < 60 ; $i++){
		  if($i < 10)
			    print "<option value='$i'>0$i</option>";
		  else
			    print "<option value='$i'>$i</option>";
	}
    ?>
    </select>
    <select id='ampmSelect' class='reducedInputTime' name='ampm'>
	<option value='am'>AM</option>
	<option value='pm'>PM</option>
    </select>
</p>
<!-- ----------------End Time Field------------------------- -->

<!-- ----------------ID Field------------------------- -->
<p class="hidden">
    <label hidden for="id">ID</label>
    <input id='id' name="id" type="text" placeholder="" hidden >
</p>
<!-- ----------------End ID Field------------------------- -->

<!-- ----------------Direction Field------------------------- -->
<p>
    <label class="field" for="direction">Direction</label>
    <select id='direction' name="direction">
        <option value="North">North</option>
        <option value="South">South</option>
        <option value="East">East</option>
        <option value="West">West</option>
    </select>
</p>
<!-- ----------------End Direction Field------------------------- -->

<!-- ----------------Buttons------------------------- -->
<p>
    <input class="reducedSize right yellow button" value="Add Stop"  id = "submit" name="submit" type="submit"><!-- Add Stop Button -->
    <input class="reducedSize right blue button" value="Reset/Clear Form" name="reset" type="reset" onclick="resetForm()"><!-- Reset Button -->
</p>
<!-- ----------------End Buttons------------------------- -->
</form>
